import { defineStore } from "pinia";
import { ref } from "vue";
import { configTypes } from '@globalTypes/global'


export const useConfigStore = defineStore('config', () => {
  const config = ref<configTypes.Config>({
    color: '#ae00ff',
    isDark: true,
    isShowDate: true,
    hour: 0,
    minutes: 0,
    seconds: 0,
    autoOpen: false,
  })

  return {
    config
  }
}, {
  persist: true
})
